﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ServiceCore.Tool.JD_Pay
{
    public class querytrade_Params : JD_Api_Base_Params
    {
        public querytrade_Params()
        {
            this.Request_URL = CodeContent.Api_Url.querytrade;
        }  
        /// <summary>
        /// 门店号
        /// </summary>
        public string shopId { get; set; }
        /// <summary>
        /// 平台交易号
        /// </summary>
        public string trandNo { get; set; }
        /// <summary>
        /// 商户订单号
        /// </summary>
        public string outTradeNo { get; set; }
        /// <summary>
        /// 业务数据
        /// </summary>
        public string businessData { get; set; }
        /// <summary>
        /// 业务数据
        /// </summary>
        public string extMap { get; set; }
    }

    public class querytrade_Result
    {
        public string merchantNo { get; set; }

        public string businessCode { get; set; }
        /// <summary>
        /// 商户订单号
        /// </summary>
        public string outTradeNo { get; set; }
        /// <summary>
        /// 平台流水号
        /// </summary>
        public string tradeNo { get; set; }
        /// <summary>
        /// 币种
        /// </summary>
        public string currency { get; set; }
        /// <summary>
        /// 交易总金额
        /// </summary>
        public long amount { get; set; }
        /// <summary>
        /// 用户支付金额
        /// </summary>
        public long piAmount { get; set; }
        /// <summary>
        /// 商户优惠金额
        /// </summary>
        public long merchantCouponAmount { get; set; }
        /// <summary>
        /// 平台营销金额
        /// </summary>
        public long couponAmount { get; set; }
        /// <summary>
        /// 支付方式
        /// </summary>
        public string piType { get; set; }
        /// <summary>
        /// PROCESSING ：交易处理中  CLOSE  ：已关闭  REFUND ：已退款  FINISH  ：支付成功 
        /// </summary>
        public string payStatus { get; set; }

        public string resultCode { get; set; }

        public string errCode { get; set; }

        public string errCodeDes { get; set; }

        public string returnParams { get; set; }
        /// <summary>
        /// 交易成功时间
        /// </summary>
        public string payFinishTime { get; set; }
        /// <summary>
        /// 微信支付宝订单号
        /// </summary>
        public string transactionId { get; set; }
        /// <summary>
        /// 系统名称
        /// </summary>
        public string systemId { get; set; }
        /// <summary>
        /// 账单退款条形码
        /// </summary>
        public string channelNoSeq { get; set; }
        /// <summary>
        /// 用户标识
        /// </summary>
        public string openId { get; set; }
    }
}
